import Layout from '@/layout'

const Router = {
  path: '/couponManagement',
  component: Layout,
  redirect: '/coupon-list',
  name: 'couponManagement',
  
  meta: {
    title: '优惠券管理',
    icon: 'coupon'
  },
  children: [
    {
      path: 'coupon-list',
      component: () => import('@/views/couponManagement/couponList'),
      name: 'couponList',
      meta: { title: '优惠券列表', noCache: true }
    },
    {
      path: 'coupon-add',
      component: () => import('@/views/couponManagement/couponAdd'),
      name: 'couponAdd',
      hidden: true,
      meta: { title: '新增优惠券', noCache: true }
    },
    {
      path: 'receipt-details',
      component: () => import('@/views/couponManagement/receiptDetails'),
      name: 'receiptDetails',
      meta: { title: '领券明细', noCache: true }
    },
    {
      path: 'coupons-details',
      component: () => import('@/views/couponManagement/couponsDetails'),
      name: 'couponsDetails',
      meta: { title: '用券明细', noCache: true }
    },
  ]
}

export default Router
